package com.oa.modules.approvalsec1.service.impl;

import com.oa.common.utils.AppUtils;
import com.oa.common.utils.Constant;
import com.oa.common.utils.PageUtils;
import com.oa.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.modules.approvalsec1.dao.SuperviseHandleDao;
import com.oa.modules.approvalsec1.entity.SuperviseHandleEntity;
import com.oa.modules.approvalsec1.service.SuperviseHandleService;

@Service("superviseHandleService")
public class SuperviseHandleServiceImpl extends ServiceImpl<SuperviseHandleDao, SuperviseHandleEntity> implements SuperviseHandleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        params.put("status", Constant.YES_OR_NO.YES.getValue());
        IPage page= AppUtils.getPage(new Query<SuperviseHandleEntity>(), params);
        return AppUtils.setPage(page, baseMapper.findPage(params), baseMapper.findRecords(page, params));
    }

}
